import { ServerConfig } from "../src/config/ServerConfig"
import DateUtil from "../src/engine/utils/DateUtil"
import { HttpUtil } from "../src/engine/utils/HttpUtil"
import { LogMethodConfig } from "./LogMethodConfig"

export class LogServerHelper {

    public static sendLog(method: string, params: object) {
        // let log_server: ServerConfig = ServerConfig.randomLogServer()
        // HttpUtil.request_by_body(log_server.getInternalUrl() + method, params)
    }


    public static log_club_in_out_history(clubid: number, userid: number, in_out_type: number, handle_userid: number) {
        let logParam: object = {
            "clubid": clubid,
            "userid": userid,
            "handle_userid": handle_userid,
            "in_out_type": in_out_type,
            "time": DateUtil.formatDateStr(DateUtil.now()),
        }
        LogServerHelper.sendLog(LogMethodConfig.method_type.club_in_out_history, logParam)
    }


}